<template>
  <div class="List" :style="{'height':pageHeight +'px'}">
    <article class="view">
      <h1>{{List.amount}}</h1>
      <h2>{{List.type}}</h2>
    </article>

    <div class="depositDetail">
        <dt v-for="(item,index) in depositDetail" :key="index">
            <div class="flex1">
                <text class="tip1">{{item.heading}}</text>
                <text class="tip2">{{item.detail}}</text>
            </div>
        </dt>

    </div>

  </div>
</template>

<script>
  import Service from '@/utils/service'

  export default {

    data() {
      return {
        isPass: true,
        pageHeight: null,
        List: '',
        depositDetail: ''
      }
    },

    mounted() {

    },
    onLoad(option) {
      let item = JSON.parse(option.params)
      this.pageHeight = wx.getSystemInfoSync().windowHeight
      this.getList(item)

    },



    methods: {
      getList(item) {
        const that = this
        let params={
          orderNo:item.orderNo,
          type:item.type,
          remarks:item.remarks,
          depositTime:item.depositTime
        }
        Service.depositDetail(params)
          .then((res) => {
            if (res.code == 200) {
             that.List = res.data
             that.depositDetail = res.data.depositDetail
            }
          })
      },
    }
  }
</script>

<style scoped>
  .view {
    text-align: center;
    padding: 0;
    margin: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 255px;
  }

  .nocart {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  h1{
    margin: 60px 0 20px 0
  }
  .flex1 {
    justify-content: space-between;
    margin-bottom: 30px
  }

  .tip1 {
    font-size: 30px;
    font-family: PingFangSC-Regular;
    font-weight: 400;
    color: #999;
    line-height: 60px;
  }

  .tip2 {
    font-size: 30px;
    font-family: PingFangSC-Regular;
    font-weight: 400;
    color: #333;
    line-height: 60px;
  }

  .tx1 {
    font-size: 28px;
    color: #333;
  }

  .tx2 {
    font-size: 80px;
    color: #333;
  }

  .tx3 {
    font-size: 28px;
    font-family: PingFangSC-Regular;
    font-weight: 400;
    color: rgba(153, 153, 153, 1);
    line-height: 29px;
  }

  .cart1 {
    position: relative;
  }

  .yhq {
    line-height: 100px;
    font-size: 30px;
    background: #fff;
    margin-left: 50px;
  }

  .yhq:after {

    margin-bottom: 0;
    content: '';
    position: absolute;
    width: 60px;
    height: 6px;
    left: 60px;
    bottom: 0;
    background-color: #FED130;
  }

  .List {
    position: relative;
    width: 100%;
    background: rgba(246, 246, 246, 1);
    box-sizing: border-box;
  }
  .depositDetail{
    margin:50px;

  }

  .quanbg {
    width: 670px;
    height: 240px;

  }

  .List dt {
    position: relative;
    margin-bottom: 30px;
  }

  .List dt:last-child {
    margin-bottom: 0;
  }

  .textfont {
    position: absolute;
    left: 30px;
    top: 40px;
    z-index: 99;
  }

  .overDate {
    width: 200px;
    height: 200px;
    position: absolute;
    z-index: 100;
    right: 170px;
    top: 40px;
  }

  .none {
    width: 88px;
    height: 61px;
    text-align: center;
    margin-bottom: 20px;
  }


</style>
